import { request } from '@/utils/request';

export async function fetchLogout(params) {
    return request({
        url: '/elderly/sign_out',
        method: 'POST',
        data: {
            ...params
        }
    })
}

export async function fetchUserRegister(params, header) {
    return request({
        url: '/elderly/registered',
        method: 'POST',
        data: {
            ...params
        },
        header
    })
}

export async function fetchUserUpdate(params, header) {
    return request({
        url: '/elderly/edit',
        method: 'POST',
        data: {
            ...params
        }
    })
}